package com.li.client.management;

import java.util.EventObject;

public class DynamicFormSubmitCompleteEvent extends EventObject
{

	private String resultHtml;

	/**
	 * Creates a new event with information about the source and submit results.
	 * 
	 * @param source
	 *            the object sending the event
	 * @param resultHtml
	 *            the result html returned by the server
	 */
	public DynamicFormSubmitCompleteEvent(DynamicCallbackForm source, String resultHtml)
	{

		super(source);
		this.resultHtml = resultHtml;
	}

	/**
	 * Gets the result text of the form submission.
	 * 
	 * @return the result html, or <code>null</code> if there was an error
	 *         reading it
	 * @tip The result html can be <code>null</code> as a result of submitting
	 *      a form to a different domain.
	 */
	public String getResults()
	{
		return resultHtml;
	}
}